<!DOCTYPE html>
<html>
<style type="text/css">
	.contract-pictures {
		top: 0;
		left: 0;
		width: 80px;
		height: 80px;
	}

	.uploader_box {
		display: flex;
		justify-content: center;
		margin: auto;
		height: 4rem;
		background-color: #FFFFFF;
	}

	.uploadMsg {
		height: 1.25rem;
		font-size: 0.5rem;
		margin: 10px 0px 0px 0px;
		line-height: 1.25rem;
		text-align: center;
		background-color: #FFFFFF;
		color: #333333;
		font-family: PingFangSC-Regular, PingFang SC;
	}

	.take_pic_btn {
		width: 344.95px;
		height: 50px;
		font-size: 0.5rem;
		font-weight: 600;
		line-height: 50px;
		border-radius: 0.38rem;
		text-align: center;
		margin: 20px 0px 0px 00px;
		font-family: PingFangSC-Semibold, PingFang SC;
		color: #FFFFFF;
		background: linear-gradient(318deg, #FF9100 0%, #FFA400 100%);
	}

	.mask {
		position: fixed;
		left: 0;
		top: 1.38rem;
		right: 0;
		bottom: 0;
		margin: auto;
		background-color: rgba(0, 0, 0, .7);
		z-index: 99;
	}

	.mask_msg {
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		margin: auto;
		width: 8.75rem;
		height: 2.19rem;
		background: #FFFFFF;
		border-radius: 0.25rem;
		font-size: 0.5rem;
		text-align: center;
		line-height: 2.19rem;
	}

	.big_pic {
		height: 100%;
		display: flex;
		align-items: center;
		transform: scale(1);
		transition: all ease 0.2s;
	}
</style>

<head>
	<meta charset="utf-8" />
	<title>填写合作信息</title>
	<meta http-equiv="Content-type" content="textml; charset=utf-8" />
	<meta content="telephone=no" name="format-detection" />
	<meta name="x5-orientation" content="portrait">
	<meta name="screen-orientation" content="portrait">
	<meta name="viewport"
		content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=yes">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<link rel="icon" href="data:;base64,=">
	<link rel="stylesheet" type="text/css" href="//img.ejiayou.com/activity/pages/ejiayoupay/ejiayou/css/reset.css" />
	<link rel="stylesheet" href="css/index.css" />
	<link rel="stylesheet" type="text/css" href="css/index_style.css" />
	<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/vant@2.5/lib/index.css" />

</head>

<body>
	<div id="app" v-cloak>
		<div class="load_end" v-if="!loadEnd"></div>
		<!--			<div class="tab_content">-->
		<!--				<div class="tab_item tab_active">-->
		<!--					<span>审核信息</span>-->
		<!--				</div>-->
		<!--				<div class="tab_item" @click="comeToExtraMsg">-->
		<!--					<span>补充信息</span>-->
		<!--				</div>-->
		<!--			</div>-->
		<div class="step_box">
			<img src="https://img.ejiayou.com/activity/jiguang_upload/img/step_active_five.png">
		</div>
		<div class="main_active">
			<van-form @submit="saveComeToNext">
				<van-cell value="油站环境照片"></van-cell>
				<!-- <van-field name="" label="环境照片" :rules="[{ required: true, message: '*请上传环境照片' }]"> -->
				<van-field name="uploader" v-model="stationFilePic" label="环境照片"
					:rules="[{validator, message: '请上传环境照片' }]">
					<template #input>
						<div class="contract-pictures" @click="selectPic">
							<van-image fit="cover" :src="stationFilePic">
								<template v-slot:loading>图片上传中</template>
							</van-image>
						</div>
					</template>
				</van-field>
				<van-cell value="合作信息"></van-cell>
				<van-field name="" right-icon="arrow" clickable readonly v-model="onLineTime" label="上线时间"
					@click="showStartTimePopup"></van-field>
				<van-popup v-model="show_start_time" position="bottom">
					<van-datetime-picker v-model="currentStartDate" type="datetime" :min-date="minStartDate"
						:max-date="maxStartDate" title="选择时间" :loading="isLoadingShow" @cancel="show_start_time = false"
						@confirm="confirmStartTimePicker"></van-datetime-picker>
				</van-popup>
				<van-field name="" right-icon="arrow" clickable readonly v-model="cooperationTime" label="合作时间"
					@click="showCooperateTimePopup"></van-field>
				<van-popup v-model="show_cooperate_time" position="bottom">
					<van-datetime-picker v-model="currentCooperateDate" type="datetime" title="选择时间"
						:min-date="minCooperateDate" :max-date="maxCooperateDate" :loading="isLoadingShow"
						@cancel="show_cooperate_time = false" @confirm="confirmCooperateTimePicker">
					</van-datetime-picker>
				</van-popup>
				<!--					<van-field name="" label="合同照片" :rules="[{ required: true, message: '*请上传合同' }]">-->
				<!--						<template #input>-->
				<!--							<van-uploader v-model="contractFilePics" :after-read="afterContractFilePic" multiple :max-count="1" :disabled="look_gd?true:false"-->
				<!--							 :deletable="look_gd?false:true" />-->
				<!--						</template>-->
				<!--					</van-field>-->

				<van-field name="radio" label="押金">
					<template #input>
						<van-radio-group v-model="cashPledge" direction="horizontal" :disabled="look_gd?true:false">
							<van-radio name="0">
								无
								<template #icon="props">
									<img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
								</template>
							</van-radio>
							<van-radio name="1">有
								<template #icon="props">
									<img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
								</template>
							</van-radio>
						</van-radio-group>
					</template>
				</van-field>
				<van-field v-if="cashPledge==1" type="number" v-model="cashPledgePrice" :readonly="look_gd?true:false"
					name="押金金额" :rules="[{ required: true, message: '*请输入押金金额' }]" label="押金金额" placeholder="押金金额">
				</van-field>
				<van-field name="radio" label="区域保护">
					<template #input>
						<van-radio-group v-model="areaProtection" direction="horizontal" :disabled="look_gd?true:false">
							<van-radio name="0">
								无
								<template #icon="props">
									<img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
								</template>
							</van-radio>
							<van-radio name="1">有
								<template #icon="props">
									<img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
								</template>
							</van-radio>
						</van-radio-group>
					</template>
				</van-field>
				<van-field name="radio" label="渠道费减免">
					<template #input>
						<van-radio-group v-model="channelFeeReduce" direction="horizontal"
							:disabled="look_gd?true:false">
							<van-radio name="0">
								无
								<template #icon="props">
									<img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
								</template>
							</van-radio>
							<van-radio name="1">有
								<template #icon="props">
									<img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
								</template>
							</van-radio>
						</van-radio-group>
					</template>
				</van-field>
				<van-field v-model="addConditions" :readonly="look_gd?true:false" name="特殊附加条件" label="特殊附加条件"
					placeholder="没有则不填"></van-field>

				<div class="submit_box_step">
					<van-button square type="primary" @click="rebackToLast" native-type="button">上一步</van-button>
					<van-button v-if="!look_gd&&!from_page" square type="primary" native-type="submit">保存并下一步
					</van-button>
					<van-button v-if="look_gd" square type="primary" native-type="button" @click="lookNextStep">查看下一步
					</van-button>
				</div>
				<div class="submit_box" v-if="from_page">

					<van-button square type="primary" native-type="button" @click="rebackUrl">关闭工单</van-button>
				</div>

				<!--					<div class="submit_box_step" v-if="!look_gd_text&&!from_page">-->
				<!--						<van-button square type="primary" native-type="button" @click="rebackToLast">上一步</van-button>-->
				<!--&lt;!&ndash;						<van-button square type="primary" native-type="submit" v-if="!look_gd">确认申请</van-button>&ndash;&gt;-->
				<!--						<van-button square type="primary" native-type="submit" v-if="!look_gd">保存并下一步</van-button>-->
				<!--						<van-button square class="xuxian_button" type="primary" native-type="button" @click="rejectGd" v-if="look_gd">驳回</van-button>-->
				<!--					</div>-->
				<!--					<div class="submit_box" v-if="look_gd && !look_gd_text">-->
				<!--						<van-button square type="primary" native-type="button" @click="applyPass">通过申请</van-button>-->
				<!--					</div>-->
				<!--					<div class="submit_box" v-if="look_gd_text&&!from_page">-->
				<!--&lt;!&ndash;						<van-button square type="primary" native-type="button" @click="rebackGd">返回工单</van-button>&ndash;&gt;-->
				<!--            <van-button square type="primary" native-type="button" @click="lookNextStep">查看下一步</van-button>-->

				<!--					</div>-->
				<!--					<div class="submit_box_step" v-if="from_page">-->
				<!--						<van-button square type="primary" native-type="button" @click="rebackToLast">上一步</van-button>-->
				<!--						<van-button square type="primary" native-type="button" @click="rebackUrl">关闭工单</van-button>-->
				<!--					</div>-->
			</van-form>
		</div>
		<div class="overlayMask" v-if="overlayShow" @touchmove.stop.prevent>
			<div class="wrapper">
				<div class="wrapper_info">
					<div class="wrapper_title">{{wrapperTitle}}</div>
					<div class="wrapper_yijian">审批意见：</div>
					<div class="wrapper_textarea">
						<textarea v-model="mytext" name="" placeholder="非必填" id="" cols="30"
							rows="10">{{mytext}}</textarea>
					</div>
					<div class="wrapper_between">
						<div class="wrapper_between_fl" @click="overlayShow=false">取消</div>
						<div class="wrapper_between_rg" @click="submitApproval">确认</div>
					</div>
				</div>
			</div>
		</div>
		<div class="overlayMask" v-if="nonstandardShow" @touchmove.stop.prevent>
			<div class="wrapper" @touchmove>
				<div class="wrapper_info">
					<div class="wrapper_title">非标准上线流程</div>
					<div class="wrapper_sub_title" v-if="standard_data.work_type == 3">
						您提交的申请为非标准上线流程，需要审核通过后，运营手动配置上线。预计上线时长5-10天。触发的非标规则如下：</div>
					<div class="wrapper_sub_title" v-if="standard_data.work_type == 2">
						您提交的申请为非标准上线流程，需要审核通过才能上线，预计上线时长3-5天。触发的非标规则如下：</div>
					<div class="wrapper_content">
						<div>
							<p v-for="(remark, remark_index) in standard_data.remark">
								{{remark_index+1}}.{{remark}}
							</p>
						</div>
					</div>
					<div class="wrapper_between">
						<div class="wrapper_between_fl" @click="nonstandardShow=false">取消</div>
						<div class="wrapper_between_rg" @click="applySure">确认申请</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 拍摄示例层 -->
		<van-action-sheet v-model="showExamplePic" title="拍摄示例">
			<div>
				<van-swipe :autoplay="3000">
					<van-swipe-item v-for="(image, index) in images" :key="index">
						<van-image fit="contain" :src="image"></van-image>
					</van-swipe-item>
				</van-swipe>
			</div>
			<div class="uploadMsg">拍摄图片覆盖全部拍摄区域</div>
			<div class="uploader_box">
				<van-uploader :after-read="afterStationFilePic" max-count="1">
					<div class="take_pic_btn">开始拍摄</div>
				</van-uploader>
			</div>
		</van-action-sheet>
		<!-- 图片放大层 -->
		<div class="mask" v-show="showBigPicCover">
			<div class="big_pic" @click="reduceImage">
				<van-image fit="cover" :src="stationFilePic">
				</van-image>
			</div>
		</div>
	</div>
	<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	<script src="https://img.ejiayou.com/activity/js/common/jquery.min.js" type="text/javascript"
		charset="utf-8"></script>
	<script src="js/vant.min.js"></script>
	<script src="js/utils.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/area.js" type="text/javascript" charset="utf-8"></script>
	<script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
	<script src="js/upload.js" type="text/javascript" charset="utf-8"></script>

	<script>
		// var vConsole = new VConsole();
		eval(function (p, a, c, k, e, r) {
			e = function (c) {
				return c.toString(a)
			};
			if (!''.replace(/^/, String)) {
				while (c--) r[e(c)] = k[c] || e(c);
				k = [function (e) {
					return r[e]
				}];
				e = function () {
					return '\\w+'
				};
				c = 1
			};
			while (c--)
				if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
			return p
		}('(6(a,d){j b=a.i,e="3"f 5?"3":"9",c=6(){b.7.8=(2>b.4?b.4:2)/2*g+"h"};a.0&&(d.0(e,c,!1),a.0("k",c,!1))})(l,5);',
			22, 22,
			'addEventListener||750|orientationchange|clientWidth|window|function|style|fontSize|resize||||||in|64|px|documentElement|var|DOMContentLoaded|document'
				.split('|'), 0, {}))
	</script>
	<script>
		// console.log(area_list)
		var ejy_json_list = JSON.parse(localStorage.getItem('ejy_json_list'))
		var look_gd = getQueryVariable('look_gd') || ''
		var from_page = getQueryVariable('from_page') || ''
		var look_gd_text = getQueryVariable('look_gd_text') || ''
		var admin_id = getQueryVariable('admin_id') || ''
		var work_order_id = getQueryVariable('work_order_id') || ''
		var order_type_id = getQueryVariable('order_type_id') || 1
		// 在 #app 标签下渲染一个按钮组件
		new Vue({
			el: '#app',
			data: {
				activityHost: (window.location.origin.indexOf("dev.ejiayou.com") != -1 ? window.location.origin : "//finance.ejiayou.com"),
				activeIcon: 'https://img.ejiayou.com/activity/jiguang_upload/img/active_icon.png',
				inactiveIcon: 'https://img.ejiayou.com/activity/jiguang_upload/img/inactive_icon.png',
				active: 0,
				loadEnd: false,
				minStartDate: new Date(2020, 0, 1),
				maxStartDate: new Date(2025, 10, 1),
				currentStartDate: new Date(),
				minCooperateDate: new Date(2020, 0, 1),
				maxCooperateDate: new Date(2025, 10, 1),
				currentCooperateDate: new Date(),
				onLineTime: '',
				cooperationTime: '',
				show_start_time: false,
				show_cooperate_time: false,
				currentDate: '',
				isLoadingShow: false,
				minDate: '',
				maxDate: '',
				formatter: '',
				stationFilePics: [],
				contractFilePics: [],
				contractFilePic: '',
				cashPledge: '0',
				cashPledgePrice: '',
				areaProtection: '0',
				channelFeeReduce: '0',
				addConditions: '',
				nonstandardShow: false,
				overlayShow: false,
				wrapperTitle: '',
				mytext: '',
				standard_data: '',
				look_gd_text: look_gd_text,
				look_gd: look_gd,
				work_order_id: work_order_id,
				order_type_id: order_type_id,
				admin_id: admin_id,
				work_order_status: 1,
				title: '',
				from_page: from_page,
				stationFilePic: 'https://img.ejiayou.com/upload/2021/4/4d97491c-5c03-47f6-a427-4815480f02dc-1619435309258.png',
				showExamplePic: false,
				images: ['https://img.ejiayou.com/upload/2021/4/dfe61c45-edf4-4cb0-af8a-89e62594fd83-1619399688772.png'
				],
				showBigPicCover: false,
			},
			created() {
				this.onLineTime = this.formatTime(new Date())
				var d = new Date();

				d.setFullYear(d.getFullYear() + 1); //加一年
				d.setDate(d.getDate() + 1);
				this.cooperationTime = this.formatTime(d)
				this.currentCooperateDate = d
			},
			watch: {
				onLineTime: {
					handler: function (newVal, oldVal) {
						var d = new Date(newVal.replace(/-/g, '/'));

						d.setFullYear(d.getFullYear() + 1); //加一年
						d.setDate(d.getDate() + 1);
						this.cooperationTime = this.formatTime(d)
						this.currentCooperateDate = d
					}
				}
			},
			mounted() {
				var self = this
				var d = new Date();

				d.setFullYear(d.getFullYear() + 1); //加一年
				d.setDate(d.getDate() + 1);
				this.getFormData(function () {
					self.onLineTime = json_list.onLineTime || self.formatTime(new Date())

					self.cooperationTime = json_list.cooperationTime || self.formatTime(d)
					self.stationFilePics = json_list.stationFilePics || []
					self.stationFilePic = json_list.stationFilePic || 'https://img.ejiayou.com/upload/2021/4/4d97491c-5c03-47f6-a427-4815480f02dc-1619435309258.png'
					self.contractFilePics = json_list.contractFilePics || []
					self.contractFilePic = json_list.contractFilePic || ''
					self.cashPledge = json_list.cashPledge || '0'
					self.cashPledgePrice = json_list.cashPledgePrice || ''
					self.areaProtection = json_list.areaProtection || '0'
					self.channelFeeReduce = json_list.channelFeeReduce || '0'
					self.addConditions = json_list.addConditions || ''
					self.loadEnd = true
				})

			},
			methods: {
				validator(val) {
					var defaultPic = 'https://img.ejiayou.com/upload/2021/4/4d97491c-5c03-47f6-a427-4815480f02dc-1619435309258.png'
					if (val.length === 0 || val === defaultPic) {
						return false;
					} else {
						return true;
					}
					// return val.length === 0 ? false : true		
				},
				lookNextStep: function () {
					var self = this
					location.replace('extra_message.html?from_page=' + from_page + '&look_gd_text=' + this.look_gd_text + '&work_order_id=' + self.work_order_id +
						'&admin_id=' + self.admin_id + '&order_type_id=' + self.order_type_id + '&look_gd=' + look_gd +
						'&reback_url=' + encodeURIComponent(location.href))
					// location.href = 'fifth_index.html?
				},
				rebackUrl: function () {
					history.back()
				},
				getFormData: function (fn) {
					var self = this
					var data = {
						admin_id: this.admin_id,
						work_order_id: this.work_order_id
					}
					$.ajax({
						url: '/eapi/v1/activity/work/info?t=' + new Date().getTime(),
						data: data,

						type: 'get',
						dataType: 'json',
						success: function (res) {
							console.log(res)
							if (res.status == 200) {
								var resData = res.data
								self.title = resData.title
								json_list = JSON.parse(resData.content)
								if (fn) {
									fn()
								}
							}
						}
					})

				},
				createFormSave: function (json_list_data, fn) {
					var self = this
					var data = {
						order_type_id: this.order_type_id || 1,
						title: self.title,
						content: JSON.stringify(json_list_data),
						remark: '',
						admin_id: this.admin_id,
						work_order_id: this.work_order_id,
						is_exchange: 0
					}
					$.ajax({
						url: '/eapi/v1/activity/work/form_save',
						data: data,

						type: 'post',
						dataType: 'json',
						success: function (res) {
							console.log(res)
							if (res.status == 200) {
								var resData = res.data
								fn()
							}
						},
					})
				},
				// createFormSave: function(json_list_data, is_exchange, fn) {
				// 	var self = this
				// 	var data = {
				// 		order_type_id: this.order_type_id || 1,
				// 		title: self.title,
				// 		content: JSON.stringify(json_list_data),
				// 		admin_id: this.admin_id,
				// 		work_order_id: this.work_order_id,
				// 		is_exchange: is_exchange
				// 	}
				// 	$.ajax({
				// 		url: '/eapi/v1/activity/work/form_save',
				// 		data: data,
				//
				// 		type: 'post',
				// 		dataType: 'json',
				// 		success: function(res) {
				// 			console.log(res)
				// 			if (res.status == 200) {
				// 				var resData = res.data
				// 				localStorage.removeItem('ejy_work_order_id')
				// 				fn()
				// 			} else {
				// 				console.log(res)
				// 			}
				// 		},
				// 		error: function(err) {
				// 			vant.Toast(err.responseJSON.error.message)
				// 		}
				// 	})
				// },
				comeToExtraMsg: function () {
					var self = this
					location.replace('extra_message.html?look_gd_text=' + this.look_gd_text + '&look_gd=' + this.look_gd +
						'&work_order_id=' + self.work_order_id + '&admin_id=' + self.admin_id + '&order_type_id=' + self.order_type_id +
						"&reback_url=" + encodeURIComponent(location.href))
				},

				addZero: function (n) {
					return n < 10 ? '0' + n : n
				},
				formatTime(time) {
					return time.getFullYear() + '-' + this.addZero(time.getMonth() + 1) + '-' + this.addZero(time.getDate()) + ' ' +
						this.addZero(time.getHours()) + ':' + this.addZero(time.getMinutes()) + ':' + this.addZero(time.getSeconds())
				},
				showStartTimePopup: function () {
					if (look_gd) {
						return
					}
					this.show_start_time = true
				},
				showCooperateTimePopup: function () {
					if (look_gd) {
						return
					}
					this.show_cooperate_time = true
				},
				confirmStartTimePicker: function (res) {
					this.onLineTime = this.formatTime(res)
					this.show_start_time = false
					console.log(res)
				},
				confirmCooperateTimePicker: function (res) {
					this.cooperationTime = this.formatTime(res)
					this.show_cooperate_time = false
				},

				selectPic() {
					var isReader = window.localStorage.getItem('isReader');
					console.log('----look_gd------' + look_gd)
					if (look_gd) {
						this.showExamplePic = false;
						this.showBigPicCover = true;
					} else {
						this.showExamplePic = true;
						this.showBigPicCover = false;
					}
				},

				reduceImage() {
					this.showBigPicCover = false;
				},

				afterStationFilePic(file) {
					// 此时可以自行将文件上传至服务器
					var self = this
					this.showExamplePic = false;

					UpladFile(file.file, function (codes) {
						self.uploadTheIMG('afterStationFilePic', codes)
					})
				},
				afterContractFilePic(file) {
					var self = this
					UpladFile(file.file, function (codes) {


						self.uploadTheIMG('afterContractFilePic', codes)
					})
				},
				uploadTheIMG: function (canshu, file) {
					var self = this
					$.ajax({
						type: 'POST',
						url: "/wxmp/view/uploadPic.ac",
						data: {
							imgData: file
						},
						// dataType: JSON,
						success: function (data) {
							var data = JSON.parse(data)
							if (canshu == 'afterStationFilePic') {
								for (var n = 0; n < self.stationFilePics.length; n++) {
									self.$set(self.stationFilePics[n], 'url', data.data)
									self.$set(self.stationFilePics[n], 'content', data.data)
									self.$set(self.stationFilePics[n], 'isImage', true)
								}
								console.log(self.stationFilePics)
								self.stationFilePic = data.data
							}
							if (canshu == 'afterContractFilePic') {
								for (var n = 0; n < self.contractFilePics.length; n++) {
									self.$set(self.contractFilePics[n], 'content', data.data)
									self.$set(self.contractFilePics[n], 'isImage', true)
								}
								self.contractFilePic = data.data
							}
						},

					});

				},
				// 判断是否是非标准流程
				judgeStandard: function (fn) {
					var self = this

					$.ajax({
						url: this.activityHost + '/cwxt/onlineStation/checkWorkType?return_value=2,3,4&work_order_id=' + this.work_order_id,

						type: 'get',
						success: function (res) {
							if (res.success == true) {
								fn(res.data)
							}
						},
					})
				},
				rebackToLast: function () {
					location.replace(decodeURIComponent(getQueryVariable('reback_url')))
				},
				saveComeToNext: function () {
					var self = this
					json_list.onLineTime = this.onLineTime
					json_list.cooperationTime = this.cooperationTime
					json_list.stationFilePics = this.stationFilePics
					json_list.stationFilePic = this.stationFilePic
					json_list.contractFilePics = this.contractFilePics
					json_list.contractFilePic = this.contractFilePic
					json_list.cashPledge = this.cashPledge
					json_list.cashPledgePrice = this.cashPledgePrice
					json_list.areaProtection = this.areaProtection
					json_list.channelFeeReduce = this.channelFeeReduce
					json_list.addConditions = this.addConditions
					self.createFormSave(json_list, function () {
						location.replace('extra_message.html?from_page=' + from_page + '&look_gd_text=' + this.look_gd_text + '&work_order_id=' + self.work_order_id +
							'&admin_id=' + self.admin_id + '&order_type_id=' + self.order_type_id + '&reback_url=' +
							encodeURIComponent(location.href))
						// location.href = '/pages/aurora_project/base_station/extra_message.html?user_id=' + self.admin_id
					})
					// self.createFormSave(json_list, 0, function() {
					// 	self.judgeStandard(function(res_data) {
					// 		self.standard_data = res_data
					// 		json_list.remark = self.standard_data.remark
					// 		if (res_data.work_type == 1) {
					// 			self.createFormSave(json_list, 1, function() {
					// 				location.replace('/pages/aurora_project/work_system/index.html?user_id=' + self.admin_id)
					// 			})
					// 		} else {
					// 			self.nonstandardShow = true
					// 		}
					// 	})
					// })
					return
				},
				rejectGd: function () {
					this.wrapperTitle = '审批驳回'
					this.work_order_status = 2
					this.overlayShow = true
				},
				applyPass: function () {
					this.wrapperTitle = '审批通过'
					this.work_order_status = 1
					this.overlayShow = true
				},
				submitApproval: function (fn) {
					var self = this
					var data = {

						work_order_id: this.work_order_id,
						admin_id: this.admin_id,
						remark: this.mytext,
						audit: this.work_order_status
					}
					$.ajax({
						url: '/eapi/v1/activity/work/exchange_node',
						data: data,

						type: 'post',
						dataType: 'json',
						success: function (res) {
							console.log(res)
							if (res.status == 200) {
								var resData = res.data
								location.replace('/pages/aurora_project/work_system/index.html?user_id=' + self.admin_id)
							}
						},
					})
				},
				rebackGd: function () {
					var self = this
					location.replace('/pages/aurora_project/work_system/index.html?user_id=' + self.admin_id)
				},
				applySure: function () {
					var self = this
					this.createFormSave(json_list, 1, function () {
						location.replace('/pages/aurora_project/work_system/index.html?user_id=' + self.admin_id)
					})
				}

			}
		});
		Vue.use(vant.Lazyload);
	</script>
</body>

</html>